const mongoose = require('mongoose')

const schema = new mongoose.Schema({
    // 名称
    name: {type:String},
    // 父类的id
    parent:{type:mongoose.SchemaTypes.ObjectId,ref:'Category'}
})

module.exports = mongoose.model('Category',schema)

